Pants.flickrBadge = function () {
  var flickrbadge = YAHOO.util.Dom.get('flickrbadge'),
      fakebadge   = YAHOO.util.Dom.get('fakeflickrbadge'),
      anim        = new YAHOO.util.Anim(flickrbadge, {opacity: {to: 1.0}}, 1,
          YAHOO.util.Easing.easeBoth);

  YAHOO.util.Dom.setStyle(flickrbadge, 'opacity', 0.0);
  YAHOO.util.Dom.setStyle(flickrbadge, 'background', 'none');

  flickrbadge.innerHTML = fakebadge.innerHTML;
  fakebadge.innerHTML   = '';

  anim.animate();
};

YAHOO.util.Event.onContentReady('content', prettyPrint);
